home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / z80.zip / Z80FAQ.DOC < prev   
Text File  |  1994-12-29  |  10KB  |  250 lines

  1. Sinclair ZX Spectrum Emulator 'Z80' v3.03  -  29/12/94  -  by G.A. Lunter
  2.  
  3.  
  4.  
  5. ────────────────────────────────────────────────────────────────────
  6.  
  7. Z80 - Frequently Asked Questions
  8.  
  9.  
  10. 1 - How to print the diagram of the tape-interface
  11.     as shown in DIAGRAM.Z80, or make other screendumps.
  12. 2 - How to LLIST and LPRINT to a printer
  13. 3 - How to build the tape-interface
  14. 4 - What to do if the Zandbergen joystick doesn't work correctly
  15. 5 - How to contact the author
  16. 6 - Manic Miner and Jetset Willy run too fast!
  17. 7 - How to save a .SCR snapshot to tape or .TAP file
  18. 8 - Printing problems with Tasword 128
  19. 9 - What to do about an IN 0 crash?
  20.                             
  21. ────────────────────────────────────────────────────────────────────
  22.  
  23.  
  24.  
  25. ad 1. How to make a screen-dump on a printer
  26.  
  27.  
  28. When the Interface 1 appeared, it was possible to attach a serial printer
  29. to the RS232 port of the Interface 1.  The emulator can redirect the RS232
  30. to the serial port of the PC, a file or a parallel (printer) port.
  31.  
  32. The SamRam can make a screen-dump on a dot-matrix printer. It is programmed
  33. for a Star SG-10.  The Spectrum 128's COPY command sends its output to the
  34. "p" printer channel, also an RS232 channel.  This will work for
  35. Epson-compatible printers.  The ZX Printer's COPY output can be translated
  36. into graphics data understandable for Epson and HP-PCL compatible printers,
  37. and finally, the DISCiPLE has also on-board screen dump routines.
  38.  
  39.  
  40. Example 1: Screen-dump for Epson or HP-PCL compatible printers, via
  41.    the standard COPY command.
  42.  
  43.    Select the printer port to use for output with -XL 2 for example, to
  44.    select LPT2 for output.  Select Epson or HP-PCL output format with -0e
  45.    or -0h.  Then simply type COPY (in 48K or SamRam mode, not in 128K
  46.    mode).
  47.  
  48.  
  49. Example 1: Screen-dump for Star SG-10 compatible matrix printer using
  50.    the SamRam.
  51.  
  52.    Redirect the Spectrum Interface 1 RS232 output to LPT1 by pressing F4,
  53.         O, L, 1.
  54.    Load a .Z80 file, and wait for the picture you want to print to appear.
  55.    Switch to SamRam mode by pressing F10, H, 3, CTRL-ENTER, and generate an
  56.         NMI by pressing X, N.  If you're already in SamRam mode you can
  57.         simply press F5.
  58.    Press P, then 1 to print the screen.
  59.  
  60.  
  61. Example 2: Screendump for EPSON compatible matrix printer using the
  62.    COPY command of the Spectrum 128
  63.  
  64.    Redirect the RS232 output to LPT1 by pressing F4, O, L, 1.
  65.    Load a .Z80 file, and wait for the picture you want to print to appear.
  66.    Save it as a .SCR screendump by pressing F10, X, S, name
  67.    Switch to Spectrum 128K mode (F9, 5, ENTER)
  68.    Choose '128K BASIC' from the menu, and type PAUSE 0:COPY, and press
  69.         ENTER once.
  70.    Press F10, X, L, name, to load the screen snapshot back into memory.
  71.    Go back to the emulator (ESC, ESC) and press any key to start printing.
  72.  
  73.  
  74. Example 3: Screendump for all other printers, using DOS utilities
  75.  
  76.    Follow the steps from example 2 up to the saving of the .SCR
  77.         screen snapshot.
  78.    Leave the emulator.
  79.    Run CONVERT on the .SCR file to generate a .GIF or a .PCX file, for
  80.         example
  81.                 CONVERT b g screen.scr screen.gif,   or
  82.                 CONVERT b x screen.scr screen.pcx
  83.    Find another program that can print the .GIF or .PCX file
  84.  
  85.  
  86. Example 4: Screendump for Epson or HP PCL compatible printers using
  87.    the screendump routines of the DISCiPLE
  88.  
  89.    Redirect RS232 output to LPT1.
  90.  
  91.    Switch to 48K + DISCiPLE mode (or 128K + DISCiPLE) and select the ROM
  92.         with the pre-loaded D.O.S. for Epson or HP PCL compatible printers
  93.    Type COPY SCREEN$ 1 for a small screen-dump (black/white but with regard
  94.         to colors)
  95.    Type COPY SCREEN$ 2 for an A4 dump with dithered grey-tones.
  96.  
  97.  
  98. ────────────────────────────────────────────────────────────────────
  99.  
  100. ad 2. How to LLIST and LPRINT to a printer
  101.  
  102.  
  103. There are several ways to print things.  The standard ZX Printer output can
  104. be converted to graphics output in Epson or HP-PCL format; for this, select
  105. output port with -xl and output mode with -0e or -0h, then simply use
  106. LPRINT, LLIST and COPY to output to the "p" stream (on 48K Spectrum or
  107. SamRam; not on the Spectrum 128K).
  108.  
  109. All output to the Interface I's RS232 channel "b" and "t" (for raw and text
  110. output respectively; use "t" for listings) and the Spectrum 128's RS232
  111. channel "p" and the parallel printer interface of the DISCiPLE/+D can be
  112. routed to the printer port, a serial port or a disk file.  Thus, by OPEN
  113. #3,"b", "t" on the 48K Spectrum with Interface 1, or OPEN #3,"p" on the
  114. Spectrum 128, all data sent to channel 3 (i.e. printed by LPRINT or LLIST)
  115. can be routed directly to a printer.
  116.  
  117. The normal ZX Printer "p" channel is automatically (by an interrupt
  118. routine...) converted into the DISCiPLE/+D parallel printer output channel
  119. by typing POKE @11,0.  POKE @11,1 resets the "p" channel to the default
  120. again.
  121.  
  122. As said above, you have to redirect the output of the Interface 1 RS232.
  123. In the emulator, press F4, O, L, 1.  Like on the real spectrum with
  124. Interface 1, if you want to print to the Interface 1 RS232, you have to
  125. open the #3 channel.  In Spectrum Basic, type: OPEN #3,"b"  (or OPEN #3,"t"
  126. for basic listings).  Press SHIFT-ALT-4 for OPEN #.
  127.  
  128. In this way you can print anything as long as your spectrum program
  129. supports printing to the Interface 1 RS232 and your printer type. For
  130. example, it is perfecty possible to print a textfile on your printer with
  131. Tasword 3, or make a printout with Art Studio.
  132.  
  133.  
  134. ───────────────────────────────────────────────────────────────────
  135.  
  136. ad 3. How to build the tape interface.
  137.  
  138.  
  139. The diagram of the tape interface is in the program DIAGRAM.Z80. It is easy
  140. to build, and inexpensive, since only passive components are used.
  141.  
  142. If you do not want to build the interface yourself, you can order one for
  143. BP 11.50 with B G Services.  For the address, see the Registering section
  144. in the documentation file, or the REGISTER.DOC file.
  145.  
  146.  
  147. ───────────────────────────────────────────────────────────────────
  148.  
  149. ad 4. What to do if the Zandbergen joystick doesn't work correctly
  150.  
  151.  
  152. The Zandbergen joystick interface did not work at all in version 2.01.  It
  153. works properly in V3 again.  Sorry to have kept you waiting so long...
  154.  
  155. To a fully implemented pc-joystick port, two analogue joysticks can be
  156. attached (on one plug!).  A number of multi-io cards can handle only one
  157. analogue joystick.  However, the Zandbergen joystick needs a fully
  158. implemented joystick port. If only two directions (out of four) work, your
  159. joystick port is not usable.  Use an analogue pc-joystick instead.
  160.  
  161. The joystick port of a Sounblaster is fully implemented and ok to use.
  162.  
  163. If you have more than one joystick port in your pc, you have to disable
  164. one.
  165.  
  166.  
  167. ───────────────────────────────────────────────────────────────────
  168.  
  169. ad 5. How to contact the author.
  170.  
  171.  
  172. You can contact me by email or normal post:
  173.  
  174. Internet email: gerton@rcondw.rug.nl
  175.  
  176. Postal address:
  177.  
  178.         Gerton Lunter
  179.         P.O. Box 2535
  180.         9704 CM  Groningen
  181.         The Netherlands.
  182.  
  183.  
  184. ───────────────────────────────────────────────────────────────────
  185.  
  186. ad 6. Manic Miner and Jetset Willy run too fast!
  187.  
  188.  
  189. True. Most of the time these games are either producing sound or executing
  190. an LDIR instruction to update the screen. Since this instruction can be
  191. emulated with a single REP MOVSB instruction of the 8086, emulation is
  192. suddenly very fast. Without sound, Manic Miner and Jetset Willy were two of
  193. very few games that were actually playable on a 8 MHz PC, and of course I
  194. don't want to slow down the emulator on slow machines!
  195.  
  196. If you turn the LDIR emulation switch on, the LDIR instruction will behave
  197. somewhat differently, important for well-protected programs. As a side
  198. effect, it will then also run at the right speed.
  199.  
  200.  
  201. ───────────────────────────────────────────────────────────────────
  202.  
  203. ad 7. How to save a .SCR snapshot to tape or .TAP file
  204.  
  205.  
  206. First make the appropriate choises in the tape menu, F7.  Then type SAVE
  207. "name" SCREEN$.  Press ENTER, and then press F10 in the one second gap
  208. between header and data block.  When saving to tape you can easily see it;
  209. when saving to disk, after pressing ENTER give the emulator a split second
  210. to save the header to disk before pressing F10.
  211.  
  212. Now load the .SCR snapshot into memory, and continue saving.
  213.  
  214.  
  215. ───────────────────────────────────────────────────────────────────
  216.  
  217. ad 8.  Printing problems with Tasword 128
  218.  
  219.  
  220. Tasword 128 does not print correctly via the "p" channel; at least, my
  221. version of Tasword 128 doesn't.  The problems can be circumvented easily by
  222. opening stream 3 for output to channel "b", i.e. OPEN #3,"b", instead of
  223. using channel "p".  A better solution is to remove the bug.  Load Tasword
  224. 128, turn on Microface 128 emulation, hit NMI (F5), choose T, then H for
  225. Hex, address 9DD3, and poke the values 01 FD 7F ED 79 32 5C 5B FB C9 into
  226. the respective addresses (pressing ENTER twice after each value); then Q
  227. and R.
  228.  
  229.  
  230. ───────────────────────────────────────────────────────────────────
  231.  
  232. ad 9.  What to do about an IN 0 crash?
  233.  
  234.  
  235. The Interface I often crashes if the 'Microdrive Data' port is accessed
  236. when the microdrive is not running.  Entering PRINT IN 0 in Basic will
  237. usually hang the Spectrum.  So, if a program reads from the 'Microdrive
  238. Data' port when it shouldn't, the emulator lets the user know that an
  239. ordinary Spectrum would have crashed at that point.
  240.  
  241. Some programs did indeed crash if an Interface I was attached; JetSet Willy
  242. is an example (just wait until it pauses, then press a key).  To use these
  243. programs, simply select the hardware mode 48K (or 128K) Spectrum without
  244. Interface 1.  In this mode the emulator won't bother about programs reading
  245. from port 0.
  246.  
  247.  
  248.  
  249.  
  250.